export const myRequest = (options) => {
	uni.showLoading({
		title:"加载中"
	})
	return new Promise ((resolve,reject) => {
		uni.request({
			url:options.url,
			method:options.method || 'GET',
			data:options.data || {},
			success: (res) => {
				//console.log(res)
				resolve(res)
			},
			fail: (err) => {
				//console.log(err)
				reject(err)
			},
			complete() {
				uni.hideLoading()
			}
		})
	})
}